package net.hn.hnms.biz.api.safety.monitor.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * 智呈物联 pan'sx
 * 2022/7/28 15:08
 * 1.0 version
 */
@ApiModel("瓦斯预警-重要指标")
@Data
public class GasIndicatorVo {
    @ApiModelProperty("人员")
    private BigDecimal personnel=new BigDecimal(0);
    @ApiModelProperty("环境")
    private BigDecimal environment=new BigDecimal(0);

    @ApiModelProperty("管理")
    private BigDecimal manage=new BigDecimal(0);
    @ApiModelProperty("设备")
    private BigDecimal device=new BigDecimal(0);
    @ApiModelProperty("综合得分")
    private BigDecimal comprehensive=new BigDecimal(0);
    @ApiModelProperty("诊断数")
    private int diagnoses;

    @ApiModelProperty("状态")
    private String status;

    @ApiModelProperty("扣分问题集合")
    private List<Problem> problems=new ArrayList<>();

    @Data
   public class Problem{
        @ApiModelProperty("问题名称")
        private String name;
        @ApiModelProperty("原因")
        private String reason;
        @ApiModelProperty("扣分")
        private BigDecimal deduct;
    }

}
